package com.gst.handfood.utils;

import android.app.Application;
import android.content.Context;
import android.os.Handler;

import com.gst.handfood.model.Model;

/**
 * Created by YBH on 2017/10/30.
 */

public class FoodApplication extends Application {
    public static  Context context = null;
    public static Handler handler = null;
    public static Thread mainThread = null;

    public static int mainThreadID =0;
    @Override
    public void onCreate() {
        super.onCreate();
        context = getApplicationContext();
        handler = new Handler();
        mainThread = Thread.currentThread();
        mainThreadID = android.os.Process.myTid();

        Model.getInstance().init(this);

    }
}
